import request from "@/utils/request";

//活动印记
export const activityImprintApi = (params) => {
	return request({
		url: "/v1/activity/presses/imprint/list",
		method: "get",
		params,
	});
};

//网站公共的banner列表
export const bannerListApi = (params) => {
	return request({
		url: "/v1/common/banner/list",
		method: "get",
		params,
	});
};

//活动热榜
export const activityHotRankApi = (params) => {
	return request({
		url: "/v1/activity/popularity/resource/list",
		method: "get",
		params,
	});
};

//精选推荐
export const recommendApi = (params) => {
	return request({
		url: "/v1/activity/recommend/resource/list",
		method: "get",
		params,
	});
};

//最新活动接口
export const latestActivityApi = (params) => {
	return request({
		url: "/v1/activity/latest/resource/list",
		method: "get",
		params,
	});
};

//活动列表
 export const activityListApi = (params) => {
 	return request({
 		url: "/v1/activity/resource/list",
 		method: "get",
 		params,
 	});
 };
 
 //分类列表和状态列表接口 
 export const activityStatusApi = (params) => {
 	return request({
 		url: "/v1/activity/category/status/list",
 		method: "get",
 		params,
 	});
 };
 //活动详情
 export const activityDetailApi = (params) => {
 	return request({
 		url: "/v1/activity/detail/get",
 		method: "get",
 		params,
 	});
 };
 // 活动详情-猜你喜欢接口 
 export const activityGuessApi = (params) => {
 	return request({
 		url: "/v1/activity/guess/resource/list",
 		method: "get",
 		params,
 	});
 };
 //活动收藏/取消收藏接口
 export const activityFavoriteApi = (params) => {
 	return request({
 		url: "/v1/activity/favorite/request",
 		method: "get",
 		params,
 	});
 };
 // 活动推荐/取消推荐接口
 export const activityRecommendApi = (params) => {
 	return request({
 		url: "/v1/activity/recommend/request",
 		method: "get",
 		params,
 	});
 };
 //活动报名
 export const activityRegisterApi = (id,data) => {
     return request({
	    url: `/v1/activity/register/for/activity`,
       method: "post",
       data,
	   params:{
		   activity_id:id
	   },
       headers: {
         "Content-Type": "application/json",
       },
     });
   };
   //奖励优选榜接口  
   export const rewardListApi = (params) => {
   	return request({
   		url: "/v1/activity/reward/resource/list",
   		method: "get",
   		params,
   	});
   };